package gushiwen;
import java.util.Scanner;
public class Gushici {static String gushi ="汉皇重色思倾国御宇多年求不得杨家有女初长成养在深闺人未识天生丽质难自弃一朝选在君王侧回眸一笑百媚生六宫粉黛无颜色春寒赐浴华清池温泉水滑洗凝脂侍儿扶起娇无力始是新承恩泽时云鬓花颜金步摇芙蓉帐暖度春宵春宵苦短日高起从此君王不早朝承欢侍宴无闲暇春从春游夜专夜后宫佳丽三千人三千宠爱在一身金屋妆成娇侍夜玉楼宴罢醉和春姊妹弟兄皆列士可怜光采生门户遂令天下父母心不重生男重生女骊宫高处入青云仙乐风飘处处闻缓歌慢舞凝丝竹尽日君王看不足渔阳鼙鼓动地来惊破霓裳羽衣曲九重城阙烟尘生千乘万骑西南行" ;
public static void main(String[] args) {
	int i=1;
	char[] gushi1=gushi. toCharArray();//字符串转数组
	for(char hz :gushi1){
		System. out.print(hz);
		if (i%7==0&&i%14!=0)
			System. out. print(",");//输出语句不换行
		if(i%14==0)
			System.out . println("。");//输出语句换行
		i++;
		}
	Scanner x = new Scanner(System.in);
	String y = x.next();
	zishu(gushi,y);
	x.close();
	//zishu(gushi,"一");//要查找的关键字
}
public static void zishu(String s1,String s2) {
	int count = 0;
	//System. out. print(s2);
	while(s1.length()>0) {
		int num=s1.indexOf(s2);
		if(num != -1) {
			++count;
			s1 = s1.substring(num+1);
			//System. out. print(s1);
			//System. out. print(s2);
		}
		else break;
	}
	System.out.println(s2 + "出现了"+ count + "次");
}
}
